<?php
/**
 *	This file is part of rtfdoc.
 *
 *	rtfdoc is free software: you can redistribute it and/or modify
 *	it under the terms of the GNU General Public License as published by
 *	the Free Software Foundation, either version 3 of the License, or
 *	(at your option) any later version.
 *
 *	rtfdoc is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with rtfdoc.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
class RTFColor
{
    /**
     * amount of red
     *
     * @var integer range: 0-255
     */
    private $red;
    /**
     * amount of green
     *
     * @var integer range: 0-255
     */
    private $green;
    /**
     * amount of blue
     *
     * @var integer range: 0-255
     */
    private $blue;
    /**
     * constructs Color object
     *
     * @param integer $red
     * @param integere $green
     * @param integer $blue
     * 
     * FIXME: add support for hex notation
     */
    public function __construct($red, $green, $blue)
    {
        $this->red = $red;
        $this->green = $green;
        $this->blue = $blue;
    }
    /**
     * returns array of RGB values
     * Example:
     * <code>
     * Array (
     * 	[0] => 255 // amount of red
     * 	,[1] => 255 // amount of green
     * 	,[2] => 255 // amount of blue
     * )
     * </code>
     *
     * @return array
     */
    public function getRGB()
    {
        return array($this->red, $this->green, $this->blue);
    }
}
?>